package edu.sctu.zhuyingzhi.month201504.day20150429;

/**
 * Created by user13 on 2015/4/30.
 */
public class Day1Client {
    public void printf(Message array[]){
        for (int i = 0; i <2 ; i++) {
            System.out.println(array[i].name);
            System.out.println(array[i].sex);
            System.out.println(array[i].age);
        }

    }
    public static void main(String[] args) {
        Message array1 = new Message("朱英志",18,"男");
        Message array2 = new Message("夏磊",20,"男");
        Message array3 = new Message("黄天灵",20,"男");
        Message[] array={array1,array2,array3};
        new Day1Client().printf(array);

    }
}
